import { App } from 'vue'
import windPagination from './pagination/index'
import windDialog from './dialog/index'
import { slayerDialog } from './dialogFun/index'

const components = [windPagination, windDialog]

const lib = {
  install: (Vue: App) => {
    components.forEach((e: any) => {
      Vue.component('wind-' + e.__name, e)
    })
  },
}

export { windPagination, windDialog, slayerDialog }

export default {
  install(app: App) {
    app.use(lib)
  },
}
